<div class="container">
    <div class="row clearfix">
        <div class="col-md-12 column">
            <h3>
                这是一个抽奖系统.
            </h3>
            <p>
                <em>抽奖系统</em> 是常见系统活动中不可或缺的功能。
            </p>
            <div class="row clearfix">
                <div class="col-md-6 column">
                    <h3 class="text-info text-left">
                        发红包
                    </h3>
                    <form   action="{:url('redbag/index')}" method="post">
                        <div class="form-group">
                            <label for="money">输入红包金额</label><input required id='money' type="text" class="form-control" name="money" value="200" />
                        </div>
                        <button type="submit" class="btn btn-primary btn-lg btn-block active">发红包</button>
                    </form>
                    <a id="modal-83826" href="#modal-container-83826" role="button" class="btn" data-toggle="modal">抽奖入口</a>

                    <div class="modal fade" id="modal-container-83826" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
                        <div class="modal-dialog">
                            <div class="modal-content">
                                <div class="modal-header">
                                    <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
                                    <h4 class="modal-title" id="myModalLabel">
                                        点击抽奖
                                    </h4>
                                </div>
                                <div class="modal-body">
                                    <a href="{:url('index/prize/lottery')}">立即抽奖</a>
                                </div>
                                <div class="modal-footer">
                                    <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button> <button type="button" class="btn btn-primary">确认</button>
                                </div>
                            </div>

                        </div>

                    </div>
                </div>
                <div class="col-md-6 column">
                    <h3 class="text-info text-left">
                        添加奖品
                    </h3>
                    <form role="form" action="" method="post">
                        <div class="form-group">
                            <label for="name">名称</label><input required id='name' type="text" class="form-control" name="name" />
                        </div>
                        <div class="form-group">
                            <label for="num">数量</label><input required id="num" type="text" class="form-control" name="num" />
                        </div>
                        <div class="form-group">
                            <label for="pr">概率</label><input id="pr" required class="form-control" type="text" name="pr"/>
                        </div>

                        <button type="submit" class="btn btn-block btn-lg btn-success">添加</button>
                    </form>
                </div>
            </div>
            <div class="row clearfix">
                <div class="col-md-12 column">
                    <div class="list-group">
                        <table class="table">
                            <thead>
                            <tr>
                                <th>
                                    编号
                                </th>
                                <th>
                                    名称
                                </th>
                                <th>
                                    数量
                                </th>
                                <th>
                                    概率
                                </th>
                            </tr>
                            </thead>
                            <tbody>
                            {foreach name="list" item="vo"}
                            <tr>
                                <td>
                                    {$vo.id}
                                </td>
                                <td>
                                    {$vo.name}
                                </td>
                                <td>
                                    {$vo.num}
                                </td>
                                <td>
                                    {$vo.pr}
                                </td>
                            </tr>
                            {/foreach}
                            </tbody>
                        </table>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>